<%@ page import="com.actimind.actitime.beans.UserBean,
                 com.actimind.actitime.Keys"%><%@ page errorPage="/error.jsp" %><%

UserBean user = (UserBean)session.getAttribute(Keys.LOGGEDIN_USER_KEY);
if (user != null)
{
%>
<%@ taglib uri="/WEB-INF/at.tld" prefix="at" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
    <title>Access Denied</title>

    <link rel="stylesheet" href="<html:rewrite page="/css/at.css"/>" type="text/css">
</head>

<body bgcolor="#ffffff" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

<jsp:include page="top.jsp" flush="false">
    <jsp:param name="pageSection" value="accessdenied" />
    <jsp:param name="pageAction" value="" />
</jsp:include>

<!-- 
Clear errors
<at:errors /> 
-->

<br />
<table cellspacing="0" cellpadding="5" align="center" valign="top" border="0" bgcolor="#ffffff" width="770">
<tr>
    <td class="pagetitle">
        Access Denied
    </td>
</tr>
<tr>
    <td class="pagetitle">
        <span class="errormsg">You do not have access right for this function.</span>
    </td>
</tr>
</table>

</body>
</html>
<%
}
else
{
    response.sendRedirect("login.do");
}
%>